#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include "haha.h"
int main()
{
	struct data book;
	get_time(book.time[0]);
	char a;
  	int* p = NULL;
	int num = 0;
	get_data(book);

		while (1)
		{
		system("cls");
		p = malloc(10 * sizeof(int));
		read_nubers(num, p);
		print_number(p);
			a=_getch();
			if (a == ' ')
				book.pages++;
			else if (a == '-')
				book.pages--;
			else if (a == '\r')
				break;
			 if (num < 0)
			{	
				num = 0;
			}
	
	}
		get_time(book.time[1]);
}
